<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title>Login</title>
	<link rel="stylesheet" type="text/css"
		href="#{facesContext.externalContext.request.contextPath}/resources/css/login-box.css" />
</h:head>

<h:body>
	
	
<form id="login" method="post" action="${request.contextPath}/j_spring_security_check">
	<div style="padding: 100px 0 0 250px;">
				<div id="login-box">
					<h2>Login</h2>
					Bem vindo a RSA Empreendimentos.
					<br />
					<br />
					<div id="login-box-name" style="margin-top:20px;">Login:</div>
					<div id="login-box-field" style="margin-top:20px;">
						<input name="j_username" class="form-login" title="Username" value="" size="30" maxlength="2048" />
					</div>
					<div id="login-box-name">Senha:</div>
					<div id="login-box-field">
						<input name="j_password" type="password" class="form-login" title="Password" value="" size="30" maxlength="2048" />
					</div>
					<br />
					<br />
					<br />
					<input type="image" src="../../resources/imagens/login-btn.png"   style="margin-left:90px;"  />
				</div>
	
	</div>
	<script>
			document.getElementById("login").j_username.value = "#{SPRING_SECURITY_LAST_USERNAME}";
	</script>
</form>	

</h:body>

</html>